package com.example.demo;

import java.io.FileInputStream;
import java.io.IOException;

import org.springframework.boot.env.YamlPropertySourceLoader;
import org.springframework.core.io.InputStreamResource;

public class YmalTest {

	public static void main(String[] args) throws IOException {
		String filename = YmalTest.class.getResource("/playbook-1.pl").getFile();
		YamlPropertySourceLoader yaml = new YamlPropertySourceLoader();
		
		try {
			yaml.load("xxxxx", new InputStreamResource(
					YmalTest.class.getResourceAsStream("/application-local.yml")));
		} catch (Exception e) {
			System.out.println(e.getMessage());
			e.printStackTrace();
		}
		
	}

}
